package cn.tedu.csmall.commons.pojo.cart.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
// 声明knife4j在线文档测试解释的注解
@ApiModel("新增购物车信息的DTO")
public class CartAddDTO implements Serializable {

    @ApiModelProperty(value = "商品编号",name = "commodityCode",example = "PC100")
    private String commodityCode;   // 商品编号
    @ApiModelProperty(value = "商品单价",name = "price",example = "188")
    private Integer price;          // 商品单价
    @ApiModelProperty(value = "商品数量",name = "count",example = "2")
    private Integer count;          // 商品数量
    @ApiModelProperty(value = "用户ID",name = "userId",example = "UU100")
    private String userId;          // 用户ID

}
